package org.example.cotroller;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.dao.test.TestMapper;
import org.example.entity.Result;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {
    @Resource
    TestMapper testMapper;
    @RequestMapping("/hello")
    public Result hello(@RequestBody String json) {
        log.info(json);

        return new Result("测试",1, null);
    }
}
